package com.yanqu.road.entity.log.cross.sonhai;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.ServerBaseLog;
import com.yanqu.road.entity.log.maidian.BaseLogEntity;

@FieldTypeAnnotation(tableName = "t_l_ck_son_hai_egg", desc = "山海伏兽-兽蛋日志", autoSave = true, dataUpload = true, eventName = "mountsea_egg", uploadCk = true, isCross = true)
public class LogCrossSonHaiEgg extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "活动ID", dataAttribute = "activityId", isIndex = true)
    private int activityId;

    @FieldTypeAnnotation(desc = "分组ID", dataAttribute = "group_id", isIndex = true)
    private int groupId;

    @FieldTypeAnnotation(desc = "兽蛋ID", dataAttribute = "mountsea_eggid")
    private int eggId;

    @FieldTypeAnnotation(desc = "蛋品质id", dataAttribute = "mountsea_eggqual")
    private int eggQuality;

    @FieldTypeAnnotation(desc = "占领玩家ID")
    private long userId;

    @FieldTypeAnnotation(desc = "被抢的玩家ID", dataAttribute = "mountsea_eggother")
    private long loseUserId;

    @FieldTypeAnnotation(desc = "队伍id", dataAttribute = "mountsea_team")
    private int teamId;

    public LogCrossSonHaiEgg(int activityId, int groupId, int eggId, int eggQuality, long userId, long loseUserId, int teamId) {
        this.activityId = activityId;
        this.groupId = groupId;
        this.eggId = eggId;
        this.eggQuality = eggQuality;
        this.userId = userId;
        this.loseUserId = loseUserId;
        this.teamId = teamId;
    }

    @Override
    public long getUserId() {
        return userId;
    }

}
